﻿@{
    Layout = null;
    var user = HttpContext.Current.User as Equipment_manage.Models.Authen.MyUserDataPrincipal;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>设备维修管理系统</title>
    <link rel="shortcut icon" href="~/img/webpng.png">
    <link href="/Content/bootstrap.min.css" rel="stylesheet">
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="/Content/animate.css" rel="stylesheet">
    <link href="/Content/style.css" rel="stylesheet">
    <script>
        var userid=@user.userdata.e_id;

    </script>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close">
                <i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element" style="text-align: center">
                            <span><img alt="image" class="img-circle" src="/img/profile_small.png" /></span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                    <span class="block m-t-xs">
                                        <strong class="font-bold">
                                            欢迎!<br/>
                                             @HttpContext.Current.User.Identity.Name
                                        </strong>
                                    </span>
                                </span>
                            </a>
                            <span class="block m-t-xs">
                                @*<strong class="font-bold">
                                    @user.userdata.u_Type
                                </strong>*@
                                <a href="/login/CheckLoginOut">安全退出</a>
                            </span>
                            <span class="block m-t-xs">
                                <a href="#" onclick="showalertpwd()">修改密码</a>
                            </span>
                        </div>
                        <div class="logo-element">
                            <img src="~/img/logo.jpg" style="width: 70%" />
                        </div>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-home"></i>
                            <span class="nav-label">信息管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                               @{ 
                                   
                              if (HttpContext.Current.User.IsInRole("*"))
                                {
                                    <li>
                                        <a class="J_menuItem" href="/Equipment/Equipment"><span class="glyphicon glyphicon-align-justify"></span><span>设备查询</span></a>
                                    </li>
                               }
                               }
                            @{
                                if (HttpContext.Current.User.IsInRole("admin"))
                                {
                                    <li>
                                        <a class="J_menuItem" href="/Employee/employee"><span class="glyphicon glyphicon-align-justify"></span><span>员工编号</span></a>
                                    </li>
                                }
                            }
                            @{
                                if (HttpContext.Current.User.IsInRole("*"))
                                {
                                    <li>
                                        <a class="J_menuItem" href="/UseEquipment/index"><span class="glyphicon glyphicon-align-justify"></span><span>个人设备</span></a>
                                    </li>
                                }
                            }
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-bars"></i>
                            <span class="nav-label">维修管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            @{
                                if (HttpContext.Current.User.IsInRole("*"))
                                {
                                    <li>
                                        <a class="J_menuItem" href="/Apply/RepairApply"><span class="glyphicon glyphicon-align-justify"></span><span>维修申请</span></a>
                                    </li>
                                }
                            }
                            @{
                                if (HttpContext.Current.User.IsInRole("downer,admin,wowner"))
                                {
                                    <li>
                                        <a class="J_menuItem" href="/Maintenance/MaintenanceApply"><span class="glyphicon glyphicon-align-justify"></span><span>维修审批</span></a>
                                    </li>
                                }
                            }
                            @{
                                if (HttpContext.Current.User.IsInRole("serviceman,wowner,admin"))
                                {
                                    <li>
                                        <a class="J_menuItem" href="/Maintenance/MaintenanceForm"><span class="glyphicon glyphicon-align-justify"></span><span>维修工单</span></a>
                                    </li>
                                }
                            }
                            @{
                                if (HttpContext.Current.User.IsInRole("wowner,admin"))
                                {
                                    <li>
                                        <a class="J_menuItem" href="/Maintenance/MaintenanceAppoint"><span class="glyphicon glyphicon-align-justify"></span><span>维修派人</span></a>
                                    </li>
                                }
                            }
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i></a>
                    </div>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft">
                    <i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript::" class="active J_menuTab" data-id="/Frist/index">
                            首页@*<i class="fa fa-times-circle"></i>*@
                        </a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight">
                    <i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">
                        关闭操作<span class="caret"></span>
                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        @*<li class="J_tabShowActive">
                                <a>定位当前选项卡</a>
                            </li>*@
                        <li class="divider"></li>
                        <li class="J_tabCloseAll">
                            <a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther">
                            <a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
                <a href="/login/CheckLoginOut" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe class="J_iframe" name="iframe0" style="width:100%;height:100%" src="/Frist/index" frameborder="0" data-id="/Frist/index" seamless></iframe>
            </div>
            <div class="footer">
                <div class="pull-right">
                    &copy; 2016-2017 <a href="#">DS工作室</a>
                </div>
            </div>
        </div>
    </div>
    <!--密码修改-->
    <div class="modal fade" id="pwdModel">
        <div class="modal-dialog">
            <div class="modal-content message_align">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                    <h4 class="modal-title">权限修改</h4>
                </div>
                <div class="modal-body">
                    <center>
                        <input id="new_pwd" class="form-control required" type="text" placeholder="新密码" name="e_ID" autofocus="autofocus" maxlength="20" />
                    </center>
                </div>
                <div class="modal-footer">
                    <center>
                        <a onclick="ALertpwd()" class="btn btn-success" data-dismiss="modal">确定</a>
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    </center>
                </div>
            </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
    </div>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="myModalLabel">提示</h4>
                </div>
                <div class="modal-body">
                    <center id="Message"> ...</center>
                </div>
                <div class="modal-footer">
                    <center> <button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button></center>
                </div>
            </div>
        </div>
    </div>
    <script src="/Scripts/jquery.min.js"></script>
    <script src="/Scripts/bootstrap.min.js"></script>
    <script src="/Scripts/jquery.metisMenu.js"></script>
    <script src="/Scripts/jquery.slimscroll.min.js"></script>
    <script src="/Scripts/layer.min.js"></script>
    <script src="/Scripts/hplus.js"></script>
    <script type="text/javascript" src="/Scripts/contabs.js"></script>
    <script src="/Scripts/pace.min.js"></script>
</body>
</html>
